<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <title>资金明细表</title>
    <base href="<%=basePath %>"/>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="favicon.ico" >
    <link rel="Shortcut Icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui.admin/css/style.css" />

    <link rel="stylesheet" type="text/css" href="assets/css/main.css">

</head>
<body>
<section class="Hui-article-box1">
    <div class="Hui-article">
        <article class="cl pd-20">
            <div class="text-c">
                <form action="operationUser/seeMoneyDetails.action" method="post">
                    <input type="hidden" name="num" value="1">

                    日期范围：
                    <input type="text" class="date form-group-lg layui-input" id="date1"
                           name="mdTime" value="${param.mdTime}">
                    至 <input type="text" class="date form-group-sm layui-input" id="date2"
                             name="endMdTime" value="${param.endMdTime}">

                <button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                </form>
            </div>
            <div class="mt-20">
                <table class="table table-border table-bordered table-hover table-bg table-sort">
                    <thead>
                    <tr class="text-c">
                        <%--<th width="25"><input type="checkbox" name="" value=""></th>--%>
                        <th width="80">日期</th>
                        <th width="100">操作人</th>
                        <%--<th width="">地址</th>--%>
                        <th width="130">说明</th>
                        <th width="100">金额</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:if test="${not empty pageInfo.list}">
                        <c:forEach items="${pageInfo.list}" var="temp">
                            <tr class="text-c">
                                <td>${temp.mdTime}</td>
                                <td>${temp.work.post}</td>
                                <td>${temp.matter}</td>
                                <td>${temp.money}</td>
                            </tr>
                        </c:forEach>
                    </c:if>


                    <tr class="text-c">
                        <%--<td><input type="checkbox" value="1" name=""></td>--%>
                    </tr>

                    <tr class="text-c">
                        <%--<td><input type="checkbox" value="1" name=""></td>--%>
                    </tr>

                    </tbody>
                </table>
                <span class="span1">当前第${pageInfo.pageNum}页，总共${pageInfo.pages}页</span>
                <button type="button" id="lastPage" class="r button1"  onclick="pageChange(${pageInfo.nextPage})">下一页</button>
                <button type="button" class="r button1"  onclick="pageChange(${pageInfo.prePage})">上一页</button>


            </div>
        </article>
    </div>
</section>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="assets/H-ui/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="assets/H-ui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="assets/H-ui/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="assets/H-ui/static/h-ui.admin/js/H-ui.admin.page.js"></script>
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="assets/H-ui/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="assets/H-ui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="assets/H-ui/lib/laypage/1.2/laypage.js"></script>
<script src="assets/layui/layui.all.js"></script>
<script type="text/javascript">

    $(function () {
        if(${pageInfo.isLastPage}){
            $("#lastPage").removeAttr("onclick");
        }
    });

    function pageChange(num){//条件查询按钮
        //console.log(num);
        var form=$("form");
        $("input[name='num']").val(num);
        form.action="operationUser/seeMoneyDetails.action";
        form.method="post";
        form.submit();
    }

    //网页初始化
    $(document).ready(function () {
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            //执行一个laydate实例
            laydate.render({
                elem: '#date1' //指定元素
            });
            laydate.render({
                elem: '#date2' //指定元素
            });
        });
    });

</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>